<%@tag description="Selected List Item" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@attribute name="text" required="true" rtexprvalue="true"%>
<%@attribute name="url" required="true" rtexprvalue="true"%>
<%@attribute name="selected" required="true" rtexprvalue="true"%>

<c:choose>
	<c:when test="${selected==text}">
		<li class="selected"><a href="${url}">${text}</a></li>
	</c:when>
	<c:otherwise>
		<li><a href="${url}">${text}</a></li>
	</c:otherwise>
</c:choose>
